package online.hxstart.code.concurrent.chapter06;

/**
 * @author huxing
 * @date 19-5-31 星期五 下午6:13
 * @describe
 */
public class ThreadGroupDestroy {

  public static void main(String[] args) {
    ThreadGroup group = new ThreadGroup("TestGroup");
    ThreadGroup mainGroup = Thread.currentThread().getThreadGroup();
    System.out.println("group.isDestroyed=" + group.isDestroyed());
    mainGroup.list();
    group.destroy();
    System.out.println("group.isDestroyed=" + group.isDestroyed());
    mainGroup.list();
  }
}
